package com.example.networkdemo2;

import java.util.List;

/*
* {
  "msg": "成功",
  "success": true,
  "list":
[{
      "id": 6,
      "major": "移动应用开发",
"department": "信息工程学院",
      "name": "张三",
      "phone": "15116785432",
      "email": "zs@163.com"
    }]
}
*/
public class APIResult {

    /**
     * msg : 成功
     * success : true
     * list : [{"id":6,"major":"移动应用开发","department":"信息工程学院","name":"张三","phone":"15116785432","email":"zs@163.com"}]
     */

    private String msg;
    private boolean success;
    private List<ListBean> list;

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public boolean isSuccess() {
        return success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }

    public List<ListBean> getList() {
        return list;
    }

    public void setList(List<ListBean> list) {
        this.list = list;
    }

    public static class ListBean {
        /**
         * id : 6
         * major : 移动应用开发
         * department : 信息工程学院
         * name : 张三
         * phone : 15116785432
         * email : zs@163.com
         */

        private int id;
        private String major;
        private String department;
        private String name;
        private String phone;
        private String email;

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public String getMajor() {
            return major;
        }

        public void setMajor(String major) {
            this.major = major;
        }

        public String getDepartment() {
            return department;
        }

        public void setDepartment(String department) {
            this.department = department;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getPhone() {
            return phone;
        }

        public void setPhone(String phone) {
            this.phone = phone;
        }

        public String getEmail() {
            return email;
        }

        public void setEmail(String email) {
            this.email = email;
        }
    }
}
